import styles from './index.css';
import BlankLayout from './BlankLayout';
import SiderMenu from '../components/SiderMenu/SiderMenu';
import { Layout, Icon, message } from 'antd';
const { Content, Header, Footer } = Layout;


function BasicLayout(props) {
  if (props.location.pathname === '/User/Login') {
    return <BlankLayout>{props.children}</BlankLayout>
  }

  return (
    <Layout>
      <SiderMenu />
      <Layout>
        <Content style={{ margin: '24px 24px 0', height: '100%' }}>
        {props.children}
        </Content>
      </Layout>
    </Layout>
  );
}

export default BasicLayout;
